package com.night.test;

import com.night.annotation.Component;
import com.night.annotation.Mapper;
import com.night.annotation.Param;
import com.night.annotation.Select;

import java.util.List;

/**
 * @Author: chen yang
 * @Date: 2024/12/12 19:53
 */
@Component
@Mapper
public class UserMapper {

    @Select("select * from t_user where username = #{username}")
    public List<User> getUsers(@Param("username") String username) {
        return null;
    }


    @Select("select * from t_user where username = #{username} and nick_name = #{nickName}")
    public User getOneByUsernameAndNickName(@Param("username") String username, @Param("nickName") String nickName) {
        return null;
    }
}
